﻿namespace winS.Unity
{
    /// <summary>
    /// 协程的等待类型
    /// </summary>
    internal enum WaitType
    {
        /// <summary>
        /// 不等待
        /// </summary>
        None,
        /// <summary>
        /// 任务异步
        /// </summary>
        Task,
        /// <summary>
        /// 等待xx秒
        /// </summary>
        Time,
        /// <summary>
        /// 子协程
        /// </summary>
        Coroutine,
        /// <summary>
        /// 枚举器
        /// </summary>
        Enumerator,
        /// <summary>
        /// 自定义等待
        /// </summary>
        Custom,
        /// <summary>
        /// 等待直到函数返回 true
        /// </summary>
        Function,
        /// <summary>
        /// Unity内置等待
        /// </summary>
        AsyncOperation
    }
}